#include <iostream>
#include "core.h"
#include "stralgo_s.h"
#include "relation.h"
#include "science.h"
using std::cin;
using std::cout;
using std::endl;
int main()
{
	string str;
	string exp;
	while (cin >> str)
	{
		
		exp = core(str);
		cout << exp << '\n';

		//cout << sin(str) << endl;
		//cout << cos(str);
		//cout << Divide_s("1", "39916800");
		//cin >> exp;
		//cout << Plus_s(str, exp) << endl;
		//cout << Equal(str, exp) << endl;
		//cout << Greater(str, exp) << endl;
		//cout << Less(str, exp) << endl;
		//cout << to_Int(str) << endl;
		//cout << str << endl;
		//cout << Pow(str, exp) << endl;
		//cout << Root(str, exp) << endl;
		//cout << Divide_s(str, exp) << endl;
	}
	
	return 0;
}